package masterjava.common.dao;

import org.jetbrains.annotations.Nullable;

/**
 * User: Grigory Kislin
 * Date: 04/07/11
 */
public class DaoContextHolder {
    private final ThreadLocal<DaoContext> daoContext = new ThreadLocal<DaoContext>();

    public DaoContext getDaoContext() {
        return daoContext.get();
    }

    public void setDaoContext(@Nullable DaoContext daoContext) {
        this.daoContext.set(daoContext);
    }
}
